<!-- 左侧菜单栏 -->
<section class="sidebar">
    <!-- 管理员信息 -->
    <div class="user-panel hidden-xs">
        <div class="pull-left image">
            <a href="general/profile" class="addtabsit"><img src="{$user.avatar|cdnurl|htmlentities}" class="img-circle" /></a>
        </div>
        <div class="pull-left info">
            <p>{$user.nickname|htmlentities}</p>
            <i class="fa fa-circle text-success"></i> {:__('Online')}
        </div>
    </div>

    <!-- 移动端一级菜单 -->
    <div class="mobilenav visible-xs">

    </div>

    <!--如果想始终显示子菜单,则给ul加上show-submenu类即可,当multiplenav开启的情况下默认为展开-->
    <ul class="sidebar-menu show-submenu">
        <li class="{:in_array($config.controllername,['xilujob.console'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.console/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>控制台</span>
                <span class="pull-right-container"><small class="label pull-right bg-blue">hot</small></span>
            </a>
        </li>

        
        <!-- 菜单可以在 后台管理->权限管理->菜单规则 中进行增删改排序 -->
        <li class="treeview {:in_array($config.controllername,['xilujob.job_manage'])?'active':''}">
            <a href="javascript:;">
                <i class="fa fa-shopping-bag fa-fw"></i> <span>职位管理</span>
                <span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
            </a>
            <ul class="treeview-menu {:in_array($config.controllername,['xilujob.job_manage'])?'menu-open':''}" style="display: {:in_array($config.controllername,['xilujob.job_manage'])?'block':'none'};">
                <li class="{$config.controllername.'.'.$config.actionname == 'xilujob.job_manage.index'?'active':''}">
                    <a href="{:url('index/xilujob.job_manage/index')}">
                        <i class="fa fa-circle-o fa-fw"></i><span>职位列表</span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.resume'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.resume/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>找人才</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.job_apply'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.job_apply/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>应聘简历</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.job_interview'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.job_interview/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>面试邀请</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.collection'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.collection/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>我的收藏</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.download'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.download/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>下载简历</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.view_company'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.view_company/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>谁看过我</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.company_view'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.company_view/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>我看过谁</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.message'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.message/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>消息中心</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.enterprise'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.enterprise/edit')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>企业信息</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.feedback'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.feedback/feedback')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>意见反馈</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.package'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.package/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>招聘套餐</span>
            </a>
        </li>
        <li class="{:in_array($config.controllername,['xilujob.package_order'])?'active':'treeview'}">
            <a href="{:url('index/xilujob.package_order/index')}">
                <i class="fa fa-dashboard fa-fw"></i> <span>套餐订单</span>
            </a>
        </li>
    </ul>
</section>